// 封装具体接口请求方法

import request from '@/utlis/request'
import store from '@/store/index'
// 导出接口方法
export const LoginAPI = (loginForm) => {
  return request({
    url: 'areye/loginin',
    method: "POST",
    params: `username=${loginForm.username}&password=${loginForm.password}`

  })
}


export const getUserInfoAPI = () => {
  return request({
    url: '/my/admin',
    // 默认get请求
    headers: {
      Authorization: store.state.token
    }
  })
}

